<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>毛玻璃效果</title>
</head>

<body>
  <div class="box"></div>
  <style>
    body {
      background-image: url('./lib/images/hero-img_copy.jpg');
      background-repeat: no-repeat;
      background-size: 100%;
    }

    .box {
      width: 300px;
      height: 300px;
      /* background-color: red; */
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      backdrop-filter: blur(5px);
    }
  </style>
</body>

</html>